package net.sky.oa.test.dao.talkpark;

import java.util.Date;

import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.test.annotation.Rollback;

import net.sky.oa.dao.talkpark.TalPhotoDao;
import net.sky.oa.model.TalPhoto;
import net.sky.oa.test.BaseTestCase;

public class TalPhotoDaoTestCase extends BaseTestCase {

	@Resource
	private TalPhotoDao talphotodao;
	
    @Test
    @Rollback(false)
    public void save(){
      TalPhoto talphoto=new TalPhoto();
      talphoto.setCreatetime(new Date());
      talphoto.setDesn("这是相片描述");
      talphoto.setName("这是相片名称");
      talphoto.setPicsize(1250d);
      talphoto.setType(1);
      talphoto.setPicurl("/savaPhoto/");
      this.talphotodao.save(talphoto);
    }
}
